﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace eTerm.PlugIn.NCore
{
    /// <summary>
    /// 执行周期类型
    /// </summary>
    [Flags]
    public enum OccursType : int { 
        NONE = 0 ,
        DAILY = 1,
        WEEKLY = 2,
        MONTHLY = 4
    }

    public enum FrequencyType : int { 
        NONE = 0 ,
        OCCURS_ONCE_AT  = 1,        //一次性
        OCCURS_EVERY_MINUTES = 2    //间隔性
    }

    public class Frequency
    {
        public int Occurs { get; set; }

        #region OccursType.DAILY
        /// <summary>
        /// 每隔天数[应用于OccursType.DAILY]
        /// </summary>
        public int RecursEveryDays { get; set; }

        /// <summary>
        /// 频率类型
        /// </summary>
        public int DayliFrequency { get; set; }

        /// <summary>
        /// 计划时间点
        /// </summary>
        public string OccursOnceAt { get; set; }

        /// <summary>
        /// 每隔N分钟
        /// </summary>
        public int OccursEveryMinutes { get; set; }
        #endregion

        #region OccursType.WEEKLY

        #endregion

        #region OccursType.MONTHLY

        #endregion

    }
}
